package com.ruoyi.project.business.asynctask.service;

import java.util.List;
import com.ruoyi.project.business.asynctask.entity.BusinessAsyncTask;
import com.ruoyi.project.business.asynctask.request.ListBusinessAsyncTaskRequest;
import com.ruoyi.project.business.asynctask.request.AddBusinessAsyncTaskRequest;
import com.ruoyi.project.business.asynctask.response.BusinessAsyncTaskResponse;

/**
 * 任务状态Service接口
 * 
 * @author ${author}
 * @date 2024-04-11
 */
public interface IBusinessAsyncTaskService {
    /**
     * 查询任务状态
     *
     * @param id 任务状态ID
     * @return 任务状态
     */
    public BusinessAsyncTask selectBusinessAsyncTaskById(Long id);

    /**
     */
    public List<BusinessAsyncTaskResponse> selectBusinessAsyncTaskList(ListBusinessAsyncTaskRequest request, Long tenantId);


    public int insertBusinessAsyncTask(AddBusinessAsyncTaskRequest request, Long operatorId, Long tenantId);

    /**
     * 修改任务状态
     * 
     * @return 结果
     */
    public int updateBusinessAsyncTask(BusinessAsyncTask entity, Long operatorId, Long tenantId);

    /**
     * 批量删除任务状态
     * 
     * @return 结果
     */
    public int deleteBusinessAsyncTaskByIds(Long[] ids, Long operatorId, Long tenantId);

    /**
     * 删除任务状态信息
     * 
     * @return 结果
     */
    public int deleteBusinessAsyncTaskById(Long id, Long operatorId, Long tenantId);
}
